{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=DatePicker/WdatePicker.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{res file=js/common.js}"></script>
<script type="text/javascript">
$(function(){
	$('#add_sours').click(function(){
	     window.location = "index.php?app=sample&act=purchase_info&id={$sid}";
	});
});
</script>
<body>
<!--收起展开 开始 -->
<!--<div class="sub-body" style="padding:20px 25px 0 25px;">
  <a href="" onClick="$('#search_box').slideToggle();return false;">收起/展开</a>
</div> -->
<!--收起展开 结束 -->
<div class="sub-body" id="search_box">
    <h3 class="title-1" style="display:none;">{$lang.purchase_list}</h3>
  <div class="tab_info">
  <!-- {if $sid} -->
  <div style="padding-bottom: 6px;"><input class="inquiry" value="{$lang.create_sourcing}" type="button" id="add_sours"></div>
  <!-- {/if} -->
  <div class="tab-title-1"><span>{$lang.purchase_list}</span></div>
    <table width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color1">
	  	<tr>
	        <th width="4%">{$lang.No}</th>
	        <th width="7%">{$lang.sample_sn}</th>
			<th width="7%">{$lang.ref_sample_sn}</th>
			<th width="7%">图片</th>
			<th width="7%">{$lang.sourcing_sn}</th>
	        <th width="7%" type="order" field="brand_name" order="ASC">{$lang.brand_name}</th>
	        <th width="7%" type="order" field="buyer_name" order="ASC">{$lang.buyer_name}</th>
	        <th width="7%" type="order" field="user_name" order="ASC">{$lang.merchandiser}</th>
	        <th width="7%" type="order" field="sample.status" order="ASC">{$lang.status}</th>
	        <th width="9%">订单号</th>
	        <th width="7%">{$lang.sourcing_status}</th>
	        <th width="7%">{$lang.if_print}</th>
	        <th width="7%">{$lang.amount}</th>
	      </tr>
		  <!--{foreach from=$sour_list item=sample name=sm}-->
	      <tr>
	        <td>{$smarty.foreach.sm.iteration}</td>
	        <td>{$sample.sample_sn|escape}</td>
			<td>{$sample.ref_sample_sn|escape}</td>
			<td><a href="{$sample.front_pic|escape}" target="_blank"><img src="{$sample.front_pic_small|escape}" width="80" style="border:none;" ></a></td>
			<td><a style="color:blue" href="
	         {url app=sample&act=purchase&id=$sample.sourcing_id}
	        ">{$sample.sourcing_sn|escape}</a></td>
	        <td>{$sample.brand_name|escape}</td>
	        <td>{$sample.member_name|escape}</td>
	        <td>{$sample.user_name|escape}</td>
	        <td>{$lang.statuies.$sample.status}</td>
	        <td>{$sample.order_sn|escape}</td>
	        <td>{$lang.sour_status.$sample.sourcing_status}</td>
	        <td>{$lang.yes_or_no.$sample.if_print}</td>
	        <td>{$sample.amount}</td>
	      </tr>
		  <!--{/foreach}-->
         </table>

  </div>
  {include file=page.html}
</div>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</body>
</html>